const {join} = require("path");
console.log(join('/usr', '/local', 'bin')); //  /usr/local/bin
console.log(join('/usr', '/local', '../bin')); //   /usr/bin